#pragma once

#include <QWidget>
#include <QLabel>
#include <QHBoxLayout>
#include <QDateTime>

class MessageItemWidget : public QWidget
{
    Q_OBJECT

public:
    explicit MessageItemWidget(const QString &level, const QString &message, QWidget *parent = nullptr);
    QString getText();

private:
    QLabel *iconLabel;
    QLabel *textLabel;

    void setupUI(const QString &level, const QString &message);
    QString levelToColor(const QString &level);
    QString levelToIconPath(const QString &level);

};
